<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<input type="checkbox" name="" checked>
	<script type="text/javascript" src="../jquery-3.2.1.js"></script>
	<script type="text/javascript">
		// 对于布尔类型的属性值不能用checked 用prop
		console.log($("input").attr("checked"))//checked

		// prop
		console.log($("input").prop("checked"))//true

		// 设置为false
		$("input").prop("checked", false)
	</script>
</body>
</html>